<?php echo '<?xml version="1.0" encoding="utf-8" ?>'; ?>

<rss version="2.0">
	<channel>
		<title><?=$title?></title>
		<link>http://<?=URL::base()?></link>
		<description><?=$description?></description>
		<language>ru</language>
		<copyright>ButscHBlog 2005 - 2008. Все права защищены.</copyright>
		<managingEditor>info@butsch.ru</managingEditor>
		<image>
			<url>/res/img/logo.gif</url>
			<title>ЗАО"Инфозащита"</title>
			<link>http://<?=URL::base()?></link>
		</image>
	
		<?php foreach ($blogs as $blog): ?>
		<item>
			<title><?=$blog->title?></title>
			<description><![CDATA[<?=$blog->content?>]]></description>
			<link>http://<?=URL::base()?>/blog/view/<?=$blog->slug?>/</link>
			<pubDate><?=date("D, j M Y H:i:s", strtotime($blog->published_on))?> GMT</pubDate>
			<category><?=$blog->categories->find()->header?></category>
		</item>
		<?php endforeach; ?>

	</channel>
</rss>